Skip to content

Hide temporary finish helpers from visible agent worktrees#358

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/fix-temp-helper-worktree-cleanup-2026-04-23-11-56
Apr 23, 2026
Merged

Hide temporary finish helpers from visible agent worktrees#358
NagyVikt merged 1 commit intomainfrom
agent/codex/fix-temp-helper-worktree-cleanup-2026-04-23-11-56

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • move __source-probe and __integrate helper worktrees into runtime-scoped .tmp-worktrees roots
  • delete temporary integrate refs at finish exit and sweep stale temp refs in gx cleanup
  • extend repo-scan ignores and focused regressions so helper repos stay internal

Verification

  • bash -n scripts/agent-branch-finish.sh scripts/agent-worktree-prune.sh templates/scripts/agent-branch-finish.sh templates/scripts/agent-worktree-prune.sh
  • node --test test/finish.test.js test/worktree.test.js test/setup.test.js test/metadata.test.js
  • openspec validate agent-codex-fix-temp-helper-worktree-cleanup-2026-04-23-11-56 --type change --strict

Finish helper worktrees were living under .omx/agent-worktrees and .omc/agent-worktrees, so VS Code surfaced __source-probe and __integrate repos beside real agent lanes. This moves those helpers into runtime-scoped .tmp-worktrees roots, deletes stale temporary refs at source and in prune sweeps, and extends scan-ignore/test coverage to keep the helper surface internal.

Constraint: Parent workspace view intentionally exposes .omx/agent-worktrees and .omc/agent-worktrees as real SCM lanes
Rejected: Keep helper worktrees under agent roots and only tweak labels | stale repos still surface in SCM and root scans
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Temporary finish helpers are internal-only; do not move them back under agent-worktrees without updating repo-scan ignores and prune behavior
Tested: bash -n scripts/agent-branch-finish.sh scripts/agent-worktree-prune.sh templates/scripts/agent-branch-finish.sh templates/scripts/agent-worktree-prune.sh; node --test test/finish.test.js test/worktree.test.js test/setup.test.js test/metadata.test.js; openspec validate agent-codex-fix-temp-helper-worktree-cleanup-2026-04-23-11-56 --type change --strict
Not-tested: live GitHub PR finish flow on this manually created /tmp worktree lane
@NagyVikt NagyVikt merged commit e47f47c into main Apr 23, 2026
1 check passed
@NagyVikt NagyVikt deleted the agent/codex/fix-temp-helper-worktree-cleanup-2026-04-23-11-56 branch April 23, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant